import {defineStore} from "pinia";

export const useSettingMergeStore = defineStore({
    id: 'settingMergeStore',
    state: () => {
        return {
            isMerge: false,
            isSendGroupHeader: false
        }
    },
    getters: {
        getSaveState(): boolean {
            return this.isMerge
        },
        getGroupHeader(): boolean {
            return this.isSendGroupHeader
        }
    },
    actions: {
        setSaveState(val: boolean) {
            this.isMerge = val
        },
        setGroupHeader(val: boolean) {
            this.isSendGroupHeader = val
        }
    }
})

